const joi = require('@hapi/joi')

const id = joi.number().integer().min(1).required()
const title = joi.string().required()
const content = joi.string().required().allow('')

// 验证规则对象 - 根据id进行点赞处理
exports.update_cartonlike_schema = {
  body: {
    id
  }
}

exports.add_cartoninfo_schema = {
  body: {
    title,
    content
  }
}